* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background: #03050b;
    font-family: 'Poppins', 'Segoe UI', 'Vazirmatn', sans-serif;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;

}

/* ========== پس‌زمینه کهکشانی اصلی (عمومی) ========== */
#main-galaxy-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow-x: hidden;
}

/* محتوای اصلی */
.main-content {
    position: relative;
    z-index: 10;
    flex: 1;
}

/* ========== هدر (navbar) با کهکشان اختصاصی ========== */
.navbar-wrapper {
    position: fixed;
    z-index: 2000;
    width: 100%; 
}

.navbar-galaxy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#navbar-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.navbar {
    position: relative;
    z-index: 2;
    background: rgba(15, 25, 45, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    padding: 8px 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s;
    animation: floatIn 0.8s ease-out;
}

@keyframes floatIn {
    0% { opacity: 0; transform: translateY(-40px) scale(0.96); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    font-size: 2.4rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: rotateSoft 6s infinite alternate;
}

@keyframes rotateSoft {
    0% { transform: rotate(0deg) scale(1); text-shadow: 0 0 0 gold; }
    100% { transform: rotate(8deg) scale(1.08); text-shadow: 0 0 12px gold; }
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hamburger-3d {
    display: none;
    width: 48px;
    height: 48px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.hamburger-3d span {
    width: 26px;
    height: 2.5px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.menu-list {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 60px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.menu-link i, .menu-link .menu-icon {
    font-size: 1.1rem;
    font-style: normal;
}

.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.6s;
}

.menu-link:hover::before {
    left: 100%;
}

.menu-link:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.5);
    border-color: gold;
}

/* ========== باکس سرچ طلایی ========== */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 60px;
    padding: 5px 8px 5px 5px;
    transition: all 0.3s;
}

.search-box:hover {
    border-color: #FFD700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 8px 15px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    width: 160px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: rgba(255, 215, 0, 0.6);
}

.search-box button {
    background: linear-gradient(105deg, #FFD700, #FF8C00);
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.search-box button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px gold;
}

/* دکمه‌های کاربری (ورود/خروج/پنل) */
.user-buttons {
    display: flex;
    gap: 8px;
}

.user-btn {
    padding: 8px 18px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.user-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.user-btn-logout {
    background: rgba(255, 50, 50, 0.2);
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff8888;
}

.user-btn-logout:hover {
    background: rgba(255, 50, 50, 0.4);
}

.user-btn-panel {
    background: linear-gradient(105deg, #FFD700, #FF8C00);
    color: #1a1a2e;
}

.hidden {
    display: none !important;
}

/* آیکون‌های اختصاصی با عکس و شکلک */
.icon-home { font-size: 1.1rem; }
.icon-guide { font-size: 1.1rem; }
.icon-subscribe { font-size: 1.1rem; }
.icon-login { font-size: 1.1rem; }
.icon-about { 
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.icon-about span {
    font-size: 0.8rem;
}
.icon-contact { font-size: 1.1rem; }
.icon-cart { font-size: 1.1rem; }

/* فوتر کهکشانی */
.galaxy-footer {
    position: relative;
    z-index: 20;
    margin-top: 80px;
    overflow: hidden;
}

#footer-galaxy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    background: rgba(6, 12, 24, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 215, 0, 0.4);
    padding: 50px 35px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-col h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FF8C00);
    border-radius: 4px;
    transition: width 0.4s;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #ffd966;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #FFD700;
    transform: translateX(-5px);
}

.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    color: #FFD700;
    transition: all 0.3s;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.social-icon:hover {
    transform: translateY(-8px) rotate(8deg);
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.newsletter {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.newsletter input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 60px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    outline: none;
}

.newsletter input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 12px gold;
}

.newsletter button {
    background: linear-gradient(125deg, #FFD700, #FF8C00);
    border: none;
    padding: 0 24px;
    border-radius: 60px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
}

.copyright {
    text-align: center;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd966;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-top {
    position: fixed;
    bottom: 35px;
    right: 25px;
    width: 52px;
    height: 52px;
    background: rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #FFD700;
    cursor: pointer;
    z-index: 200;
    border: 1px solid gold;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========== منوی موبایل - اصلاح شده با اسکرول ========== */
.mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: rgba(6, 12, 24, 0.98);
    backdrop-filter: blur(28px);
    z-index: 1000;
    padding: 70px 20px 20px;
    transition: right 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    border-right: 1px solid rgba(255, 215, 0, 0.3);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    margin-top: 40PX;
}

.mobile-panel.active {
    right: 0;
}

/* استایل اسکرول بار */
.mobile-panel::-webkit-scrollbar {
    width: 4px;
}

.mobile-panel::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.05);
}

.mobile-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

/* لینک‌های موبایل */
.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding-bottom: 10px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 60px;
    text-decoration: none;
    color: #FFD700;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
    transform: translateX(20px);
    opacity: 0;
    animation: slideLink 0.4s forwards;
}

.mobile-link:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateX(5px);
}

@keyframes slideLink {
    to { transform: translateX(0); opacity: 1; }
}

/* دکمه بستن */
.close-panel {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 28px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s;
}

.close-panel:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

/* لوگو در منوی موبایل */
.mobile-panel .logo-area {
    position: absolute;
    top: 12px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-panel .logo-area .logo-text {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-panel .logo-area .logo-icon svg {
    width: 32px;
    height: 32px;
}

/* دکمه‌های کاربر در پایین منو */
.mobile-panel .user-buttons {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.mobile-panel .user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.mobile-panel .user-btn-panel {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.mobile-panel .user-btn-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.mobile-panel .user-btn-logout {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.mobile-panel .user-btn-logout:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* ========== اوورلی تیره ========== */
.overlay-dark {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.overlay-dark.active {
    opacity: 1;
    visibility: visible;
}

/* ========== مدیا کوئری‌ها ========== */
/* لپ‌تاپ و صفحه‌های متوسط (1024px تا 1280px) */
@media screen and (min-width: 1024px) and (max-width: 1280px) {
    .navbar {
        padding: 8px 18px;
    }
    
    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .menu-list {
        display: flex;
        gap: 4px;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
    }
    
    .menu-link {
        padding: 8px 12px;
        font-size: 0.78rem;
        gap: 6px;
        white-space: nowrap;
    }
    
    .menu-link .icon-home,
    .menu-link .icon-guide,
    .menu-link .icon-subscribe,
    .menu-link .icon-login,
    .menu-link .icon-about,
    .menu-link .icon-contact,
    .menu-link .icon-cart {
        font-size: 0.9rem;
    }
    
    .search-box input {
        width: 110px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .search-box button {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .user-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon svg {
        width: 45px;
        height: 45px;
    }
}

/* سایز 900px تا 1024px */
@media screen and (min-width: 901px) and (max-width: 1023px) {
    .navbar {
        padding: 8px 15px;
    }
    
    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .menu-list {
        display: flex;
        gap: 3px;
        flex-wrap: nowrap;
    }
    
    .menu-link {
        padding: 7px 10px;
        font-size: 0.7rem;
        gap: 5px;
        white-space: nowrap;
    }
    
    .search-box input {
        width: 90px;
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .search-box button {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 1100px) {
    .menu-list { gap: 4px; }
    .menu-link { padding: 8px 12px; font-size: 0.8rem; }
    .search-box input { width: 120px; }
}

@media (max-width: 880px) {
    .desktop-menu { display: none; }
    .hamburger-3d { display: flex; }
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .copyright { flex-direction: column; text-align: center; }
}

@media screen and (max-width: 768px) {
    .slider .list .item .content {
        top: 20%;
        width: 90%;
        left: 5%;
        padding: 20px;
        border-radius: 20px;
    }
    .slider .list .item .content .title { font-size: 2.5rem; }
    .slider .list .item .content .type { font-size: 1.5rem; }
    .slider .list .item .content .description { font-size: 1rem; }
    .thumbnail { gap: 12px; bottom: 20px; right: 50%; transform: translateX(-50%); width: 90%; overflow-x: auto; }
    .thumbnail .item { width: 100px; height: 140px; }
    .nextprevArrows { top: auto; bottom: 20px; right: 20px; width: auto; }
    
    .messages-container {
        top: 75px;
    }
}

/* ========== پیام‌ها (Messages) ========== */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    left: auto;
    z-index: 9999;
    width: 380px;
    max-width: calc(100% - 40px);
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease forwards;
    width: 100%;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
}

.message-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.message-success::before {
    background: #22c55e;
}

.message-success .message-icon {
    background: #22c55e20;
    color: #16a34a;
}

.message-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
}

.message-error::before {
    background: #ef4444;
}

.message-error .message-icon {
    background: #ef444420;
    color: #dc2626;
}

.message-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
}

.message-warning::before {
    background: #f59e0b;
}

.message-warning .message-icon {
    background: #f59e0b20;
    color: #d97706;
}

.message-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
}

.message-info::before {
    background: #3b82f6;
}

.message-info .message-icon {
    background: #3b82f620;
    color: #2563eb;
}

.message-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.message-success .message-title { color: #166534; }
.message-error .message-title { color: #991b1b; }
.message-warning .message-title { color: #92400e; }
.message-info .message-title { color: #1e40af; }

.message-text {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.message-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* انیمیشن حذف پیام */
.message.fade-out {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

@media (max-width: 550px) {
    .messages-container {
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    .message {
        padding: 0.8rem;
    }
    .message-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .message-title {
        font-size: 0.75rem;
    }
    .message-text {
        font-size: 0.7rem;
    }
}

/* ========== اطمینان از نمایش دکمه خروج ========== */
.mobile-panel .user-btn-logout {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 60px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    background: rgba(239, 68, 68, 0.9) !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    margin-top: 6px !important;
}

.mobile-panel .user-btn-logout:hover {
    background: #dc2626 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
}

/* اطمینان از نمایش کانتینر دکمه‌ها */
.mobile-panel .user-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 215, 0, 0.15) !important;
    width: 100% !important;
}

/* ========== اطمینان از نمایش دکمه خروج ========== */
.mobile-panel {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.mobile-panel .user-buttons {
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 215, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
}

.mobile-panel .user-btn-logout {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 60px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    background: rgba(239, 68, 68, 0.9) !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

/* ========== اصلاح نهایی منوی موبایل ========== */

/* اطمینان از اسکرول عمودی */
.mobile-panel {
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
}

/* استایل اسکرول بار */
.mobile-panel::-webkit-scrollbar {
    width: 3px !important;
}

.mobile-panel::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.05) !important;
}

.mobile-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3) !important;
    border-radius: 10px !important;
}

/* کاهش فاصله بین لینک‌ها */
.mobile-panel .mobile-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important; /* کاهش فاصله از 20px به 6px */
    padding-bottom: 10px !important;
    flex: 1 !important;
}

/* کاهش پدینگ لینک‌ها */
.mobile-panel .mobile-link {
    padding: 10px 14px !important; /* کاهش از 16px به 10px */
    font-size: 0.85rem !important;
    gap: 10px !important;
    border-radius: 40px !important;
}

/* کاهش فاصله دکمه‌های کاربر */
.mobile-panel .user-buttons {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 215, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    padding-bottom: 20px !important; /* فضای پایین */
}

/* کاهش پدینگ دکمه‌های کاربر */
.mobile-panel .user-btn {
    padding: 10px 14px !important; /* کاهش از 16px به 10px */
    font-size: 0.85rem !important;
    border-radius: 40px !important;
}

/* پدینگ کلی منو */
.mobile-panel {
    padding: 60px 20px 10px !important; /* کاهش پدینگ */
}

/* دکمه بستن کوچک‌تر */
.mobile-panel .close-panel {
    top: 12px !important;
    left: 12px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
}

/* لوگو کوچک‌تر */
.mobile-panel .logo-area {
    top: 10px !important;
    right: 15px !important;
}

.mobile-panel .logo-area .logo-text {
    font-size: 0.9rem !important;
}

.mobile-panel .logo-area .logo-icon svg {
    width: 28px !important;
    height: 28px !important;
}


